package com.bootdo.appsystem.service.impl;

import com.bootdo.appsystem.vo.OrderProductAndUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.appsystem.dao.OrderproductDao;
import com.bootdo.appsystem.domain.OrderproductDO;
import com.bootdo.appsystem.service.OrderproductService;



@Service
public class OrderproductServiceImpl implements OrderproductService {
	@Autowired
	private OrderproductDao orderproductDao;
	
	@Override
	public OrderproductDO get(Integer oid){
		return orderproductDao.get(oid);
	}

	@Override
	public List<OrderproductDO> getByOrderCode(String orderCode) {
		return orderproductDao.getByOrderCode(orderCode);
	}

	@Override
	public List<OrderproductDO> list(Map<String, Object> map){
		return orderproductDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return orderproductDao.count(map);
	}
	
	@Override
	public int save(OrderproductDO orderproduct){
		return orderproductDao.save(orderproduct);
	}
	
	@Override
	public int update(OrderproductDO orderproduct){
		return orderproductDao.update(orderproduct);
	}
	
	@Override
	public int remove(Integer oid){
		return orderproductDao.remove(oid);
	}
	
	@Override
	public int batchRemove(Integer[] oids){
		return orderproductDao.batchRemove(oids);
	}

	@Override
	public List<OrderProductAndUserInfo> listAndUserInfo(Map<String, Object> map) {
		return orderproductDao.listAndUserInfo(map);
	}

	@Override
	public int countAndUserInfo(Map<String, Object> map) {
		return orderproductDao.countAndUserInfo(map);
	}

}
